<template>
  <div class="page-cont">
    <van-nav-bar
      title="分享APP"
      left-arrow
      @click-left="$router.go(-1)"
    />
    <div class="list">
      <div class="qrcode">
        <img
          :src="downloadQrcode"
          alt=""
        >
      </div>
      <div class="version">
        当前版本号: V1.0.0
      </div>
    </div>
    <div class="copyright">
      XXX 公司
    </div>
  </div>
</template>

<script>
const isDev = process.env.NODE_ENV === 'development'
const jrQrcode = require('jr-qrcode')

export default {
  name: "TmpPage",
  data() {
    return {
      downloadQrcode: ''
    };
  },
  created() {
    this.downloadQrcode = jrQrcode.getQrBase64((isDev ? 'http://47.98.107.249:6080' : location.origin) + '/webapps/mobile/#/download')
  }
};
</script>

<style lang="scss" scoped>
@import "./style.scss";
</style>
